package com.stone.framework.push.receiver;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stone.framework.message.push.MessageReqBody;
import com.stone.framework.push.service.MessageService;

@Component
public class GenericReceiver implements Receiver<MessageReqBody> {

    @Autowired
    private MessageService messageService;

    @Override
    // @RabbitListener(queues = "")
    public void pcReceive(MessageReqBody reqBody) {
        messageService.pushPc(reqBody);
    }

}
